package manager{
	import flash.net.SharedObject;

	public class ShareDataManager{
		
		protected static var shareObject:SharedObject;
		
		public static function init():void{
			shareObject = SharedObject.getLocal("Animation");
		}
		
		/**
		 * 添加一个ShareObject数据
		 * @param key
		 * @param value
		 * 
		 */
		public static function addSOValue(key:String, value:*):void{
			shareObject.data[key] = value;
		}
		
		/**
		 * 获取ShareObject数据
		 * @param key
		 * @return 
		 * 
		 */
		public static function getSOValue(key:String):*{
			return shareObject.data[key];
		}
	}
}